

export function openUrl(item: any, router?: any) {
    if (item.pcJumpLink) {
        window.open(item.pcJumpLink);
        return false
    } else if (item.mobileJumpLink) {
        window.open(item.mobileJumpLink);
        return false
    } else {
        console.log(router)
        router.push({
            path: '/newsDetails',
            query: {
                newsId: item.newsId
            }
        })
    }
}